package controllers;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import models.PageModel;

import data.PageData;

public class PrivacyPolicyServlet extends HttpServlet {
	public void doGet(HttpServletRequest request, HttpServletResponse response)
		throws IOException, ServletException {
		
		PageData pageData = new PageData();
		PageModel policy = pageData.getPrivacyPolicy();
		
		request.setAttribute("policy", policy);
		try {
			request.getRequestDispatcher("/pages/privacy_policy.jsp").forward(request, response);
		} catch (ServletException e) {
			//e.printStackTrace();
		}
	}
}
